package com.syzg.base.merge.model;

import java.io.Serializable;

public class PersonRoleId implements Serializable{

	private static final long serialVersionUID = 1L;
	private String personId;
    private String roleId;
	public PersonRoleId(){
		
	}

    public PersonRoleId(String personId, String roleId){
        this.personId = personId;
        this.roleId = roleId;
    }

    public String getPersonId(){
        return personId;
    }

    public void setPersonId(String personId){
        this.personId = personId;
    }

    public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public boolean equals(Object other){
        if(this == other)
            return true;
        if(other == null)
            return false;
        if(!(other instanceof PersonRoleId))
            return false;
        PersonRoleId castOther = (PersonRoleId)other;
        return (getPersonId() == castOther.getPersonId() || getPersonId() != null && castOther.getPersonId() != null && getPersonId().equals(castOther.getPersonId())) && (getRoleId() == castOther.getRoleId() || getRoleId() != null && castOther.getRoleId() != null && getRoleId().equals(castOther.getRoleId()));
    }

    public int hashCode(){
        int result = 17;
        result = 37 * result + (getPersonId() != null ? getPersonId().hashCode() : 0);
        result = 37 * result + (getRoleId() != null ? getRoleId().hashCode() : 0);
        return result;
    }
}